/* AtomGit Issue Feedback Plugin Styles */
.gitbook-plugin-AtomGit-issue-feedback {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    
    /* Button styling */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    user-select: none;
    
    /* Hover effects */
    transform: translateY(0);
}

.gitbook-plugin-AtomGit-issue-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.gitbook-plugin-AtomGit-issue-feedback:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Loading state */
.gitbook-plugin-AtomGit-issue-feedback.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.gitbook-plugin-AtomGit-issue-feedback.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state */
.gitbook-plugin-AtomGit-issue-feedback.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.gitbook-plugin-AtomGit-issue-feedback.success:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

/* Error state */
.gitbook-plugin-AtomGit-issue-feedback.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.gitbook-plugin-AtomGit-issue-feedback.error:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .gitbook-plugin-AtomGit-issue-feedback {
        right: 15px;
        bottom: 15px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .gitbook-plugin-AtomGit-issue-feedback {
        right: 10px;
        bottom: 10px;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 18px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .gitbook-plugin-AtomGit-issue-feedback {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
    }
    
    .gitbook-plugin-AtomGit-issue-feedback:hover {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.8);
    }
}

/* Accessibility improvements */
.gitbook-plugin-AtomGit-issue-feedback:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.gitbook-plugin-AtomGit-issue-feedback:focus:not(:focus-visible) {
    outline: none;
}

/* Animation for button appearance */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gitbook-plugin-AtomGit-issue-feedback {
    animation: slideInUp 0.5s ease-out;
}
